package com.ygxsk.carhome.ui.adapter;

import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.ygxsk.carhome.R;
import com.ygxsk.carhome.response.FileSignatureAddSubmit;
import com.ygxsk.carhome.views.ClearEditTextTouch;

import java.math.BigDecimal;
import java.util.List;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-10-20  17:08
 * @Description:新车销售，添加车辆的合同，车的信息
 */
public class SignatureAddSubmitAdapter extends BaseQuickAdapter<FileSignatureAddSubmit, BaseViewHolder> {


    public SignatureAddSubmitAdapter(int layoutResId, @Nullable List<FileSignatureAddSubmit> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, FileSignatureAddSubmit fileSignatureAddSubmit) {

        if (fileSignatureAddSubmit != null) {

            int id = fileSignatureAddSubmit.getId();

            int identifierNumber = fileSignatureAddSubmit.getIdentifierNumber();

            //签约时间
            String agreenTime = fileSignatureAddSubmit.getAgreenTime();

            //合同金额
            BigDecimal agreenAmountBigDecimal = fileSignatureAddSubmit.getAgreenAmountBigDecimal();
            //合同金额的字符格式
            String agreenAmountBigDecimalString = fileSignatureAddSubmit.getAgreenAmountBigDecimalString();


            //findview

            //签约时间
            TextView textViewAgreenTimeSignature = (TextView) baseViewHolder.getView(R.id.textviewagreentimesignature);
            //车辆品牌
            TextView textVieweBrandModelSignature = (TextView) baseViewHolder.getView(R.id.textviewebrandmodelsignature);
            //车辆车系
            TextView textViewCarModelSecondSignature = (TextView) baseViewHolder.getView(R.id.textviewcarmodelsecondsignature);
            //车辆车系
            ClearEditTextTouch editViewInputEvaluateCarModelSignature = (ClearEditTextTouch) baseViewHolder.getView(R.id.editviewinputevaluatecarmodelsignature);


        }


    }
}
